package com.smbms.service.systemservice.questionService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smbms.dao.system.question.QuestionMapper;
import com.smbms.pojo.system.Og_Questionbank;
import com.smbms.pojo.system.Og_TopicRank;
import com.smbms.pojo.system.Og_TopicType;


@Service
public class QuestionServiceImpl implements QuestionService {
	
	@Autowired
	private QuestionMapper questMapper;
	
	@Override
	public List<Og_Questionbank> questionList(Og_Questionbank question) {
		// TODO Auto-generated method stub
		return questMapper.questionList(question);
	}

	@Override
	public List<Og_TopicType> typeList() {
		// TODO Auto-generated method stub
		return questMapper.typeList();
	}

	@Override
	public List<Og_TopicRank> rankList() {
		// TODO Auto-generated method stub
		return questMapper.rankList();
	}

	@Override
	public int addQuestion(Og_Questionbank question) {
		// TODO Auto-generated method stub
		return questMapper.addQuestion(question);
	}

	@Override
	public List<Og_Questionbank> accList(Integer id) {
		// TODO Auto-generated method stub
		return questMapper.accList(id);
	}

	@Override
	public int delQuest(Integer id) {
		// TODO Auto-generated method stub
		return questMapper.delQuest(id);
	}

	@Override
	public Og_Questionbank question(Integer id) {
		// TODO Auto-generated method stub
		return questMapper.question(id);
	}

	@Override
	public int saveQuestion(Og_Questionbank question) {
		// TODO Auto-generated method stub
		return questMapper.saveQuestion(question);
	}


}
